chore(deps): update @tenphi/tasty to 3.5.0 - #1374
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 5b27db0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Resolved pnpm-lock.yaml by regenerating from main's lockfile, then re-pinning @tenphi/tasty to 3.5.0 (a plain install resolved the ^3.5.0 range up to the 3.6.0 published mid-session). Re-measured both size-limit entries against the new main: +1.21 kB on each, still inside budget, no limit raised.
Contributor
📦 NPM canary releaseDeployed canary version 0.0.0-canary-ed3208f. |
Contributor
🧪 Storybook is successfully deployed!
|
Contributor
🏋️ Size limit report
Compared against main at d996d98 — run 33081215297, 2026-08-27T14:15:19Z.To see which modules changed, download the size-limit-statoscope-report artifact from this run and open report.html. |
CI measured this branch at exactly the local readings the budgets were checked against, so the macOS/Linux caveat did not apply here. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe changes
Updates
@tenphi/tastyfrom 3.3.1 to 3.5.0 (3.4.0 + 3.5.0). No changes were needed in the kit — the two releases are additive, and the newholdKeyframes()/ownKeyframes()reach consumers automatically through the existingexport * from '@tenphi/tasty'insrc/index.ts.Two things matter to apps built on the kit:
Injected CSS is garbage-collected again. Once Tasty's render path became hook-free it stopped disposing the classes it injected, so reference counts never fell back to zero and
gc()/cleanup()/tastyDebug.cleanup()all read a non-zero count as "still in use". Nothing was ever evicted, and a long-lived page accumulated injected rules for its entire lifetime — the failure mode is a session that gets slower the longer it stays open, worst in a UI that mounts many short-lived styled subtrees (dialogs, popovers, table cells). What a style is worth keeping is now decided by the DOM.touch()andStyleUsageare deprecated but still exported, andtastyDebugno longer reportsUnused: 0 classesfor a page holding hundreds of stale rules.Local
@keyframesare content-addressed. A@keyframesblock written inside a styles object is now emitted asfade-<hash of its steps>, resolved identically by the client, the SSR collector and the RSC pass. Two components authoringanimation: fade 1sover different steps get two rules instead of one definition silently winning — which previously also let server and client disagree about which class to use. Three components here use local@keyframes(LoadingAnimation,Spin/Cube,SpinsContainer); all render unchanged.keyframes()-registered global animations are unaffected and keep their authored names.3.4.0 is pure performance: LRU cache reads are 1.79x faster in their steady-state shape, and a repeat SSR render of one component is 1.8x faster end to end now that
tasty()factories memoize their chunk cache keys.Verification
Merged with
main(25 commits) — the only conflict waspnpm-lock.yaml, resolved by regenerating from main's lockfile rather than hand-merging, then re-pinning tasty to 3.5.0. The diff againstmainis 4 files:package.json,pnpm-lock.yaml, the changeset, and the size note. Main's@tenphi/eslint-plugin-tasty1.0.5 is preserved and re-pointed at tasty 3.5.0.All re-run after the merge:
pnpm test— 102 files, 2202 passed / 1 skippedpnpm test:browser— 12 files, 141 passedpnpm lint— clean (only the pre-existingconsistent-token-usagewarnings), Prettier cleantsc --noEmit— byte-identical tomain: the same 18 pre-existing errors, no new onesWorth noting for reviewers: two intermediate full-suite runs failed 17 and 2 tests respectively, in different files each time (Form, then ItemTable), while the machine was also running builds. Four runs total, two fully clean, and the failure sets never repeated — timing flake under load, not a regression.
mainin a clean worktree passes the same suite, and the merged branch actually runs faster thanmain(45.6s vs 58.8s back-to-back on a quiet machine), consistent with 3.4.0's LRU work.Main now sets
batchInjection: trueand opensTastyBatchProviderwindows inRoot,PortalandOverlay(#1344), so this bump also picks up 3.5.0's fix fortastyDebugreads taken inside a batch window reporting empty.Size, both sides freshly rebuilt on the same machine, against the new
main:All{ Button }Both stay inside budget, so no limit is raised. Matching deltas on both entries are the signature of a change inside Tasty's always-included core.
Allis now down to 1.40 kB, the thinnest it has been — but most of that was spent before this bump:mainclimbed 508.95 → 512.39 kB on its own (+3.44 kB of Board chrome,tokens/resolve,useScheme, TextInputautoCompleteand the batching wiring), leaving 2.61 kB before tasty was touched. The next change here will likely need to raise it.One calibration note, since
.size-limit.cjswarns that macOS reads ~1.6 kB lower than the Linux runner: on this machine it did not. CI reportedmainat 500.38 KB / 118.96 KB binary, which is 512.39 kB / 121.81 kB decimal, and the local rebuild of the same commit read 512.39 kB / 121.81 kB — an exact match on both entries. CI has since measured this branch too, at 501.56 KB / 120.13 KB binary — 513.60 kB / 123.02 kB, matching the local readings the budgets were checked against. Assuming the 1.6 kB gap would have raised this budget for no reason. I recorded that in the file without retiring the warning.Checklist
Measure size of the libraryCloses: N/A
Other information
Local
@keyframesnaming is the one behaviour change worth a second look at review time: any CSS or test that refers to a local keyframes name literally would no longer resolve. Nothing in this repo does, and Chromatic covers the three animated components visually.Tasty 3.6.0 was published mid-review (2026-08-28 17:29), after this branch was measured. This PR deliberately stays on 3.5.0, which is what was asked for and what every number above was measured against. A plain
pnpm installwill resolve the^3.5.0range up to 3.6.0, so the lockfile pin is what holds it — worth a follow-up rather than an in-place retarget of this branch.🤖 Generated with Claude Code
Note
Low Risk
Dependency-only bump with no kit logic changes; main caveat is Tasty’s local
@keyframesnaming for apps that reference those names outside Tasty.Overview
Bumps
@tenphi/tastyfrom 3.3.1 to 3.5.0 (lockfile,package.json, and a minor changeset). No kit source changes — new APIs likeholdKeyframes()/ownKeyframes()still reach apps via the existingexport * from '@tenphi/tasty'.Consumers inherit Tasty 3.4.0 perf (faster LRU / memoized SSR chunk keys) and 3.5.0 runtime fixes: DOM-based GC for injected CSS (fixes long-lived pages accumulating stale rules), content-addressed local
@keyframes(avoids SSR/client name clashes; literal references to local animation names in external CSS/tests may break), andtastyDebugthat flushes pending writes before registry reads (relevant withbatchInjectiononRoot/Portal/Overlay)..size-limit.cjscomments are refreshed for +1.21 kB on bothAlland{ Button }entries (~1.40 kB headroom onAll); limits stay 515 kB / 125 kB.Reviewed by Cursor Bugbot for commit 5b27db0. Bugbot is set up for automated code reviews on this repo. Configure here.